/*
 ============================================================================
 Name		: SAApplication.cpp
 Author	  : 
 Copyright   : Copyright (c) Frost Feng
 All rights reserved.
 Description : Main application class
 ============================================================================
 */

// INCLUDE FILES
#include "SA.hrh"
#include "SADocument.h"
#include "SAApplication.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CSAApplication::CreateDocumentL()
// Creates CApaDocument object
// -----------------------------------------------------------------------------
//
CApaDocument* CSAApplication::CreateDocumentL()
{
    // Create an SA document, and return a pointer to it
    return CSADocument::NewL(*this);
}

// -----------------------------------------------------------------------------
// CSAApplication::AppDllUid()
// Returns application UID
// -----------------------------------------------------------------------------
//
TUid CSAApplication::AppDllUid() const
{
    // Return the UID for the SA application
    return KUidSAApp;
}

CDictionaryStore* CSAApplication::OpenIniFileLC(RFs& aFs) const
{
    if (iEnableIni)
    {
        return CEikApplication::OpenIniFileLC(aFs);
    }
    else
    {
        return NULL;
    }
}

void CSAApplication::EnableIni(TBool aEnableIni)
{
    iEnableIni = aEnableIni;
}

// End of File
